package net.dgg.rz.common.dao;


import net.dgg.rz.common.entity.AllotRecord;
import net.dgg.rz.common.entity.dto.AllotRecordDto;
import net.dgg.rz.production.entity.dto.ProductOrderDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface AllotRecordDao {
    int deleteByPrimaryKey(Long id);

    int insert(AllotRecord record);

    int insertSelective(AllotRecord record);

    int insertSelectiveBatch(@Param("recordList") List<AllotRecord>  recordList);

    AllotRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AllotRecord record);

    int updateByPrimaryKey(AllotRecord record);

    List<AllotRecordDto> allotRecordWithPage(Map params);

}